package com.suse.jd_system_server.controller;

import com.suse.jd_system_server.Vo.HotelPageListVo;
import com.suse.jd_system_server.service.Shb_hotelPageService;
import com.suse.jd_system_server.service.impl.Shb_hotelPageServiceImpl;
import com.suse.jd_system_server.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/HotelPage")
public class Shb_hotelPageController {

    @Autowired
    private Shb_hotelPageService service;

    @PostMapping("selectHotelList")
    public Result selectHotelList(@RequestBody Map<String,Object> param){
        System.out.println(param);
        List<HotelPageListVo> hotelPageListVos = service.selectHotelList(param);
        return Result.buildSuccess(hotelPageListVos);
    }
}
